<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<link th:href="@{/css/shop.css}" type="text/css" rel="stylesheet" />
	<link th:href="@{/css/Sellerber.css}" type="text/css"  rel="stylesheet" />
	<link th:href="@{/css/bkg_ui.css}" type="text/css"  rel="stylesheet" />
	<link th:href="@{/font/css/font-awesome.min.css}"  rel="stylesheet" type="text/css" />
	<link th:href="@{/css/Coupon.css}"  rel="stylesheet" type="text/css" />

	<link th:href="@{/layui/css/layui.css}"  rel="stylesheet" type="text/css" />

	<script th:src="@{/js/jquery-1.9.1.min.js}" type="text/javascript" ></script>
	<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
	<script type="text/javascript" th:src="@{/js/Backgroundjs/SeatManager.js}"></script>
	<script th:src="@{/js/Sellerber.js}" type="text/javascript"></script>
	<script th:src="@{/js/layer/layer.js}" type="text/javascript"></script>
<title>类型列表</title>
</head>
<body>
<div class="margin" id="page_style">
<div class="list_Exhibition list_show padding15">
<div class="operation clearfix mb15 searchs_style" >
	<form action="/place/getPlaceInfo" id="form">
		<input type="hidden" th:value="${place.totalElements}" id="totalElements"/>
		<input type="hidden" th:value="${place.number}" id="number" name="pageNum"/>
		<input type="hidden" th:value="${status}" id="statuss"/>
		<input type="hidden" th:value="${auditorstatus}" id="auditorstatuss"/>
		<input type="hidden" th:value="${cityoneId}" id="cityoneIds"/>
		<input type="hidden" th:value="${citytwoId}" id="citytwoIds"/>
		<input type="hidden" th:value="${citythreeId}" id="citythreeIds"/>
		<input type="hidden" th:value="${place.size}" id="pageSize"/>

		<label class="label_name " style="font-size: 15px">省:</label>
		<select name="cityoneId" id="province" style="margin-right:10px;margin-left:10px;padding:0 10px;width: 130px;" id="province" th:value="${cityoneId}">

		</select>
		<label class="label_name " style="font-size: 15px">市:</label>
		<select name="citytwoId" id="city" style="margin-right:30px;margin-left:10px;padding:0 10px;width: 150px"id="city" th:value="${citytwoId}">

		</select>
		<label class="label_name " style="font-size: 15px">区/县:</label>
		<select name="citythreeId" id="area" style="margin-right:30px;margin-left:10px;padding:0 10px;width: 150px" id="area">
		</select>
		<label class="label_name " style="font-size: 15px">场地状态:</label>


		<select name="status" id="status" style="margin-right:30px;margin-left:10px;padding:0 10px;width: 150px">
				<option value="0">全部</option>
				<option value="2">占用</option>
				<option value="1">可用</option>
		</select>
		<label class="label_name " style="font-size: 15px">审核状态:</label>
		<select name="auditorstatus" id="auditorstatus" style="margin-right:30px;margin-left:10px;padding:0 10px;width: 150px">
			<option value="0">全部</option>
			<option value="3">已审核</option>
			<option value="1">未审核</option>
		</select>

		<button class="btn button_btn bg-deep-blue " id="Sel" onclick=""  type="submit"><i class="fa  fa-search" ></i>&nbsp;搜索</button>
	</form>

</div>
	</div>
 <div class="datalist_show">
  <div class="datatable_height confirm">
 <table class="table table_list table_striped table-bordered" id="">
  <thead>
    <!--<th width="25px"><label><input type="checkbox" class="ace" name="check"><span class="lbl"></span></label></th>-->
	<th width="150px">场地名称</th>
	<th width="100px">所在城市</th>
	<th width="250px">所在地址</th>
	<th width="80px">座位行数</th>
	<th width="80px">座位列数</th>
	<th width="80px">场地状态</th>
	<th width="80px">审核状态</th>
	<th width="50px">申请人</th>
	<th width="150px">申请时间</th>
	<th width="200px">操作</th>
  </thead>
  <tbody id="tbody">
  		<tr th:each="place : ${place.content}" class="tr">
			<td th:text="${place.placename}"></td>
			<td th:text="${place.more1}+''+${place.more2}+''+${place.more3==null?'':place.more3}"></td>
			<td th:text="${place.address}"></td>
			<td th:text="${place.rownum}"></td>
			<td th:text="${place.columnnum}"></td>
			<td th:text="${(place.auditorstatus==1)?('正在审核'):(place.auditorstatus==2?('审核失败'):('审核成功'))}"></td>
			<td th:text="${place.status==1?'可用':'占用'}"></td>
			<td th:text="${place.agintName}"></td>
			<td th:text="${place.entertime}"></td>
			<td>
				<a th:onclick="'javascript:findImage(this,'+${place.placeid}+')'" href='javascript:;' title='查看'  class='btn btn-xs btn-status'>查看</a>
				<label><a th:onclick="'javascript:pass(this,'+${place.placeid}+')'" shiro:hasPermission="user:examineField" id='pass' href='javascript:;' title='通过'  class='btn btn-xs btn-info '>通过</a></label>
				<a th:onclick="'javascript:turn(this,'+${place.placeid}+')'" shiro:hasPermission="user:examineField" id='turn' href='javascript:;' title='驳回'  class='btn btn-xs btn-danger'>驳回</a>
			</td>

		</tr>
     </tbody>
     </table>
<!--      <div class="text-center" style="margin:4% 40%;">
         <ul class="pagination" style="text-align:center;">
			&lt;!&ndash; <li><a href='#' class='up'>上一页</a></li>
			 <li><a href='#' class='page'>1</a></li>
			 <li><a href='#' class='next'>下一页</a></li>&ndash;&gt;
         </ul>
     </div>-->
    </div>
    </div>
	</div>
   </div>
 </div>

<div id="passWhy" style="display:none;">
	<form>
		<ul style="padding: 18px">
			<li>
				<label id="why"></label><textarea rows="100" cols="30"  id="cause" style="height: 200px"></textarea>
			</li>
			<li style="text-align: center">
				<input class="btn button_btn bg-deep-blue " style="position:static;" type="button" id="submit" value="提交审核">
				<input name="reset" type="reset" class="btn button_btn btn-infobtn-gray" value="取消重置" />
			</li>
		</ul>
	</form>
</div>
<div id="image" style="display: none">

</div>



<div id="this"></div>


</body>
</html>
<!--<script src="/GiftBackstage/Backgroundpage/js/Backgroundjs/type.js"></script>-->
<script type="text/javascript">
$("#tbody").on("click","#pass",function(){
		$("#why").text("通过原因")
		layer.open({
			type: 1,
			title:'审核原因',
			area: ['300px',''],
			shadeClose: false,
			content: $('#passWhy'),
		});
})

$("#tbody").on("click","#turn",function(){
	$("#why").text("驳回原因");
	layer.open({
		type: 1,
		title:'审核原因',
		area: ['300px',''],
		shadeClose: false,
		content: $('#passWhy'),

	});
})



	//设置内页框架布局
$(function() { 
	$("#Sellerber").frame({
		float : 'left',
		color_btn:'.skin_select',
		Sellerber_menu:'.list_content',
		page_content:'.list_show',//内容
		datalist:".datatable_height",//数据列表高度取值
		header:65,//顶部高度
		mwidth:200,//菜单栏宽度
		
	});
});

	/******时间设置*******/
  var start = {
    elem: '#start',
    format: 'YYYY-MM-DD',
   // min: laydate.now(), //设定最小日期为当前日期
    max: '2099-06-16', //最大日期
    istime: true,
    istoday: false,
    choose: function(datas){
         end.min = datas; //开始日选好后，重置结束日的最小日期
         end.start = datas //将结束日的初始值设定为开始日
    }
};
var end = {
    elem: '#end',
    format: 'YYYY-MM-DD',
    //min: laydate.now(),
    max: '2099-06-16',
    istime: true,
    istoday: false,
    choose: function(datas){
        start.max = datas; //结束日选好后，重置开始日的最大日期
    }
};
laydate(start);
laydate(end);
</script>

